package com.lovenote.common.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.base.common.dao.IBaseDao;
import com.base.common.service.impl.BaseServiceImpl;
import com.lovenote.common.dao.IAttachmentDao;
import com.lovenote.common.pojo.Attachment;
import com.lovenote.common.service.IAttachmentService;

@Service("attachmentService")
public class AttachmentServiceImpl extends BaseServiceImpl<Attachment, Long> implements IAttachmentService {

	private IAttachmentDao attachmentDao;
	
	@Autowired
	@Qualifier("attachmentDao")
	@Override
	public void setBaseDao(IBaseDao<Attachment, Long> baseDao) {
		this.baseDao = baseDao;
		this.attachmentDao = (IAttachmentDao) baseDao;
	}

}
